package com.jweb.orm.entities.user;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Paul Kevin
 * Account table
 *
 */

@Entity
@Table(name = SignOn.TABLE_NAME)

public class SignOn {
	
	public static final String TABLE_NAME="SignOn";
	
	@Id
	@Column(name="username",
            nullable=false, 
            unique=true)	
	private String username;
	
	@Column(name="password",
            nullable=false)
	private String password;



	/**
	 * 
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}

	/**
	 * 
	 * @param username
	 *            the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}

	/**
	 * 
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * 
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

}
